package com.mycode.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mycode.domain.TAccount;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * @author Zengsh123 
 * @date 2020-03-17 14:15.
 */
@Mapper
public interface TAccountMapper extends BaseMapper<TAccount> {
    int decrease(@Param("userId") Long userId,
                 @Param("money") BigDecimal money);
}